package Draw;

public class Line {
// each line consists of to points: p1 and p2
	private Point _p1;
	private Point _p2;
	
	public Line (Point p1,Point p2)
	{
		this._p1 = new Point(p1);
		this._p2 = new Point(p2);
		
	}
	
	
	public Point getP1()
	{
		return _p1;
	}
	
	public Point getP2()
	{
		return _p2;
	}
	
	public String toString()
	{
		return "Line Consist of P1:"+_p1.getX()+","+_p1.getY()+" P2:"+_p2.getX()+","+_p2.getY();
	}
	
}
